<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>数据表列表</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/table.css" media="all">

</head>

<body>
<div class="header">
<div class="title">数据备份</div>
<button class="layui-btn"><i class="layui-icon"></i>立即备份</button>
<button class="layui-btn"><i class="layui-icon"></i>优化表</button>
<button class="layui-btn"><i class="layui-icon"></i>修复表</button>

<div class="layui-form">
  <table class="layui-table" >
    <colgroup>
      <col width="50">
      <col width="150">
      <col width="150">
      <col width="200">
      <col>
    </colgroup>
    <thead>
      <tr>
      
        <th>表名</th>
        <th>数据量</th>
        <th>数据大小</th>
        <th>创建时间</th>
        <th>备份状态</th>
        <th>操作</th>
      </tr> 
    </thead>
    <tbody>
      <volist name="list" id="table">
      <tr>
          <td>{$table.name}</td>
          <td>{$table.rows}</td>
          <td>{$table.data_length|format_bytes}</td>
          <td>{$table.create_time}</td>
          <td class="info">未备份</td>
          <td class="action">
          
         
              <a class="ajax-get no-refresh" href="{:U('optimize?tables='.$table['name'])}"><button class="layui-btn"><i class="layui-icon"></i>优化表</button></a>&nbsp;
              <a class="ajax-get no-refresh" href="{:U('repair?tables='.$table['name'])}"> <button class="layui-btn"><i class="layui-icon"></i>修复表</button></a>
          </td>
      </tr>
  </volist>
    </tbody>
  </table>
</div>

</div>
<script src="__PUBLIC__/layui/layui.js" ></script>
<script>
layui.use('form', function(){
  var $ = layui.jquery, form = layui.form();

});
</script>
</body>
</html>
